﻿@model IEnumerable<shop.ThuongHieu>
@foreach (var item in Model)
{
    
    if(ViewBag.ty =="1")
    {
       <option value="@item.MaTH"> --@item.ThuongHieu1</option>  
    }
    else
    {
        if(item.MaTH == ViewBag.MaTH)
        {
            <option selected="selected" value="@item.MaTH"> --@item.ThuongHieu1</option>  
        }
        else
        {
            <option value="@item.MaTH"> --@item.ThuongHieu1</option>  
        }
    }
}